package com.punai.common.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommonMapper<T> extends BaseMapper<T> {

    /**
     * 真正的批量插入
     * @param entityList
     * @return
     */
    int insertBatchSomeColumn(@Param("list") List<T> entityList);

    int deleteByProIdAndStagetype(@Param("proId") String proId,@Param("stagetype") String stagetype);
}
